<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>普通用户 - 用户界面</title>

    <link href="/css/H-ui.min.css" rel="stylesheet" type="text/css" media="all"/>
    <link href="/css/backstage.css" rel="stylesheet" type="text/css" media="all"/>
    <link href="/css/home.css" rel="stylesheet" type="text/css" media="all"/>
    <script src="/js/lib/jquery-3.5.1.min.js"></script>
    <script src="/js/lib/layer/layer.min.js"></script>

</head>
<body>
    <!-- 导航栏 -->
    <div class="navigationBar">
        <h1>用户界面</h1>
    </div>

    <!--所有用户列表-->
    <div id="type-list" class="user-list panel panel-default">

        <table class="table table-border table-bordered table-bg table-hover">
            <thead class="text-c">
                <tr><th>资源列表</th></tr>
            </thead>
            <tbody>
                <tr><td @click="select(0)" >图片资源</td></tr>
                <tr><td @click="select(1)" >用户信息资源</td></tr>
            </tbody>
        </table>
    </div>

    <!--视图区-->
    <div id="tab-management" class="permission-view HuiTab">
        <!--图片资源-->
        <div id="picture-resources" v-show="view.pictureResource">
            <div class="panel panel-default view-vox">
                <div class="panel-header">查询资源</div>
                <div class="panel-body text-c">
                    <div>
                        <label><input type="text" placeholder="输入资源名" v-model="name" class="input-text radius size-M"></label>
                        <button class="btn btn-secondary radius" @click="searchResources()">查询资源</button>
                    </div>
                    <div class="mt-20">
                        <img :src="imgname" alt="">
                    </div>
                </div>
            </div>

        </div>

        <!--用户资源-->
        <div id="user-resources" v-show="view.userResources">
            <div class="panel panel-default view-vox">
                <div class="panel-header">查询用户</div>
                <div class="panel-body text-c">
                    <div>
                        <label><input type="text" placeholder="输入用户账号" v-model="username" class="input-text radius size-M"></label>
                        <button class="btn btn-secondary radius" @click="queryUser()">查询信息</button>
                    </div>
                    <div class="mt-20 text-l">
                        <div id="my-info" class="panel panel-secondary my-info">
                            <div class="panel-header">查询结果</div>
                            <div class="panel-body">
                                <div class="mb-10"><h3><span>账号：{{user.username}}</span></h3></div>
                                <div class="mb-10"><h3><span>角色：{{user.role_name}}</span></h3></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script src="../js/lib/vue.js"></script>
    <script src="../js/home.js"></script>
</body>
</html>